import { createRouter, createWebHistory } from 'vue-router'
import Market from '../views/Market.vue'
import Indicator from '../views/Indicator.vue'
import StockDetail from '../views/StockDetail.vue'
import Backtest from '../views/Backtest.vue'
import Live from '../views/Live.vue'
import Mine from '../views/Mine.vue'

const routes = [
  { path: '/', redirect: '/backtest' },
  { path: '/market', component: Market },
  { path: '/indicator', component: Indicator },
  { path: '/stock/:stock', component: StockDetail },
  { path: '/backtest', component: Backtest },
  { path: '/live', component: Live },
  { path: '/mine', component: Mine },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router 